import re
a="jLhaPP9VtmCno3mZfHu id=digg_tip_3439076vpWIgsc6NDi9fztq1 ChDjgXfg9dTLbuJ9LE0 u1iBgDWXYbvZLUDR2pO 4fzprTTTnKmz8pG61Io<div class=digg><div class=diggit onclick=DiggIt(3439076,120879,1)> <span class=diggnum id= digg_count_3439076 "
print(re.search('www', 'www.runoob.com').span())
print(re.search('TTT', a).span())
print(re.findall('id=.{17}',a))


##text=''
##file=open('111.txt')
##for line in file:
##    text=text+line
##file.close()
###print(text)
##
####result=re.findall(' ([Aa][a-z][a-z]) |(A[a-z][a-z])',text)
####final_r=set()
####for pair in result:
####    if pair[0] not in final_r:
####        final_r.add(pair[0])
####    if pair[1] not in final_r:
####        final_r.add(pair[1])
####        
#####result=set(result)
####final_r.remove('')
####print(final_r)
##
##r=re.findall('\w{2,3}',text)
##print(r)
